<?php
namespace app\admin\model;
use think\Model;
use think\Db;
class Index extends Model{
   function index($string){
       $result=Db::table('admin')->where("username='$string'")->find();
       return $result;
   }

}